public class Frame {

    Station sourceStation;
    //生成时间
    long generateTime;
    //开始发送时间
    long startSendTime;
    //发送成功时间
    long sendSuccessTime;
    //发送次数/即回退次数
    int attemptNum;

    public long getGenerateTime() {
        return generateTime;
    }

    public void setGenerateTime(long generateTime) {
        this.generateTime = generateTime;
    }

    public long getStartSendTime() {
        return startSendTime;
    }

    public void setStartSendTime(long startSendTime) {
        this.startSendTime = startSendTime;
    }

    public long getSendSuccessTime() {
        return sendSuccessTime;
    }

    public void setSendSuccessTime(long sendSuccessTime) {
        this.sendSuccessTime = sendSuccessTime;
    }


    public Frame(Station sourceStation) {
        this.sourceStation = sourceStation;
    }

    public Station getSourceStation() {
        return sourceStation;
    }

    public void setSourceStation(Station sourceStation) {
        this.sourceStation = sourceStation;
    }

    public long getWaitTime() {
        return startSendTime - generateTime;
    }


}
